"""
@Project ：interface_platform 
@File    ：config.py
@IDE     ：PyCharm 
@Author  ：ZSR
@Date    ：2023/3/20 22:15 
"""

import os

# 日志等级
CRITICAL = 50
ERROR = 40
WARNING = 30
INFO = 20
DEBUG = 10
LOG_LEVEL = INFO

# 项目路径
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# print("当前路径为：", BASE_DIR)


# 数据库连接配置
DB_PROTOCOL = 'mysql'
DB_DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = 'zsr1029455190'
# PASSWORD = '123456'
HOST = 'localhost'
PORT = '3306'
DATABASE = 'interface_platform'

# 测试平台执行测试用例启动的线程数量
NUMBERS = 5


# MYSQL_URI的定义
MYSQL_URL = '{}+{}://{}:{}@{}:{}/{}?charset=utf8mb4'.format(
    DB_PROTOCOL, DB_DRIVER, USERNAME, PASSWORD, HOST, PORT, DATABASE
)
# print(MYSQL_URL)